//
//  CarProgResdmode.m
//  CarTown
//
//  Created by xionghao on 15/8/21.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "CarProgResdmode.h"
#import "CarprogMode.h"
@implementation CarProgResdmode
+(instancetype)progWithDict:(NSDictionary *)dict{
    CarProgResdmode *carprog=[[CarProgResdmode alloc]init];
    [carprog setValuesForKeysWithDictionary:dict];
    NSArray *array=dict[@"data"];
    NSMutableArray *marray=[NSMutableArray array];
    for (NSDictionary *carprogdict in array) {
        CarprogMode *mode=[CarprogMode carporgWithDict:carprogdict];
        [marray addObject:mode];
    }
    carprog.data=marray;
    return carprog;
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
@end
